From: Florian Müllner Date: Tue, 23 Feb 2010 14:58:33 +0000 (+0100) Subject: Fix clicking on notification icons after updates X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10393 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=edbfafc5bda0de727e61a687e5b0cc5f16658c9e;p=gnome-shell.git Fix clicking on notification icons after updates When a notification is updated by the application, the corresponding app in its source is lost, so it is no longer possible to switch to the application by clicking either the notification or the summary icon. As the associated application of a source never changes, it appears safe to leave it alone on notification updates. https://bugzilla.gnome.org/show_bug.cgi?id=610820 --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 89710d62b..a0774b7f8 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -300,6 +300,9 @@ Source.prototype = { _init: function(sourceId, icon, hints) { MessageTray.Source.prototype._init.call(this, sourceId); + this.app = null; + this._openAppRequested = false; + this.update(icon, hints); }, @@ -309,9 +312,6 @@ Source.prototype = { this._icon = icon; this._iconData = hints.icon_data; this._urgency = hints.urgency; - - this.app = null; - this._openAppRequested = false; }, createIcon: function(size) {